import java.util.Scanner;

public class dome2 {
    public static void main(String[] args) {
        System.out.println("请输入用户名");
        Scanner a=new Scanner(System.in);
        char user = a.next().charAt(0);
        System.out.println("请输入你的密码");
        Scanner sc=new Scanner(System.in);
        String mima1= sc.next();
        System.out.println("请再次输入你的密码");
        Scanner sc1=new Scanner(System.in);
        String mima2 = sc1.next();
        if(mima1.equals(mima2)){
            System.out.println("注册成功");
        }else{
            System.out.println("两次密码不一致");
        }
    }
}